import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/page/Login'

Vue.use(Router)

export default new Router({
	mode:'history',
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login
    },
    {
    	path:'/chat',
    	component:(resolve)=>require(['@/page/chat'],resolve)
    },
    {
    	path:'/regist',
    	component:(resolve)=>require(['@/page/Regist'],resolve)
    },
    {
    	path:'/test',
    	component:(resolve)=>require(['@/components/myMsg'],resolve)
    }
  ]
})
